Rhapsody Developer Release Copyright 1997 by Apple
Computer, Inc. All Rights Reserved.
Rhapsody Developer Release Notes:
Java Virtual Machine
These notes are for the Developer Release of the Java virtual
machine. The Java virtual machine enables the use of Java programs in
Rhapsody. This implementation of the Java virtual machine is based on
the Java Development Kit 1.1.3.
Documentation of the JDK 1.1.3 APIs is available from Javasoft
(http://www.javasoft.com). A subset of the JDK 1.1.3 API
documentation is stored in HTML format in
NextLibrary/Frameworks/JavaVM.framework/Documentation/packages.html.
Notes Specific to Developer Release
The Java virtual machine consists of two parts:
- An implementation of the Java Development Kit 1.1.3 for
Rhapsody.
- The JavaVM framework, a set of Objective-C classes, used to
load and call a virtual machine from Objective C.
Both parts are stored in the
NextLibrary/Frameworks/JavaVM.framework directory.
New Features
Commands
You can run the following commands, located in /usr/bin,
from the command line:
- java
- Java interpreter, which executes Java programs.
- javac
- Java language compiler, which translates programs written in
Java into bytecodes executable by the Java interpreter .
- javah
- Creates C header files used to interface programs written in
Java with code written in C .
- javap
- Bytecode disassembler.
- jar
- Packages multiple files into a Java archive.
- javadoc
- Generates documentation in HTML format from Java source code.
- jdb
- Java debugger.
Environment Variables
The Java virtual machine is using the following environment
variables:
- CLASSPATH
- Sets the path to use for looking up class files. If the
variable is not defined in the environment, you can set it in a
shell script using "javaconfig DefaultClasspath". If
javaconfig does not return a class path, the default
/NextLibrary/Java:/NextLibrary/Frameworks/JavaVM.framework/Resources/classes.jar
is used.
-
- Specifying a class path on the command line overrides this
variable. The default is not automatically searched and has to be
added to the class path if one is specifed.
-
- JAVA_HOME
- Sets the java.home property in the system properties. Defaults
to /NextLibrary/Frameworks/JavaVM.framework/Resources.
-
- JAVA_COMPILER
- Sets the java.compiler property in the system properties.
Defaults to the empty string.
-
- AWT_TOOLKIT
- Sets the awt.toolkit property in the system properties.
Defaults to com.apple.rhapsody.awt.RToolkit. (This property is not
being used in the Developer Release of Rhapsody).
-
- DYLD_LIBRARY_PATH
- Prefixes the path searched by the Java virtual machine when
looking up dynamically loaded libraries. The following directories
are always searched in the order they are listed:
.:/usr/lib:/lib:/NextLibrary/Frameworks/JavaVM.framework/Resources.
-
Known Problems
- The AWT package has not been implemented for the Developer
Release. All Java programs relying on the AWT or parts of it do not
execute correctly.
- On Windows only: After installing Rhapsody, ensure that there is no CLASSPATH variable defined in the System environment or in an AUTOEXEC.BAT file in the root directory of your boot drive. If you have any user-defined class paths, ensure that they are merged correctly into the CLASSPATH variable defined in the User environment.